Lines Matching refs:format
190 """.format(SRC=src, DST=dst, M=mode))
199 """.format(SRC=src, DST=dst, N=size, H=half_size, M=mode))
206 }}""".format(SRC=src, DST=dst, M=mode))
237 {{""".format(DST=dst, SRC=src, N=size))
244 bool_prefix = "as_{DST}{N}(convert_{BOOL}{N}".format(DST=dst, BOOL=bool_type[dst], N=size);
247 bool_prefix = "convert_{BOOL}{N}".format(BOOL=bool_type[dst], N=size);
262 return y;""".format(SRC=src, DST=dst, N=size,
271 print(" x = min(x, ({SRC}){DST_MAX});".format(SRC=src, DST_MAX=limit_max[dst]))
273 print(" x = max(x, ({SRC})0);".format(SRC=src))
278 print(" x = min(x, ({SRC}){DST_MAX});".format(SRC=src, DST_MAX=limit_max[dst]))
281 .format(SRC=src, DST_MIN=limit_min[dst], DST_MAX=limit_max[dst]))
285 print(" x = max(x, ({SRC})0);".format(SRC=src))
287 print(" return convert_{DST}{N}(x);".format(DST=dst, N=size))
311 """.format(DST=dst, SRC=src, N=size, M=mode))
343 {{""".format(SRC=src, DST=dst, N=size, M=mode, S=sat))
353 print(" return convert_{DST}{N}{S}(x);".format(DST=dst, N=size, S=sat))
355 print(" return convert_{DST}{N}(x);".format(DST=dst, N=size))
357 print(" {DST}{N} r = convert_{DST}{N}(x);".format(DST=dst, N=size))
358 print(" {SRC}{N} y = convert_{SRC}{N}(r);".format(SRC=src, N=size))
361 print(" {USRC}{N} abs_x = abs(x);".format(USRC=unsigned_type[src], N=size))
362 print(" {USRC}{N} abs_y = abs(y);".format(USRC=unsigned_type[src], N=size))
364 print(" {SRC}{N} abs_x = fabs(x);".format(SRC=src, N=size))
365 print(" {SRC}{N} abs_y = fabs(y);".format(SRC=src, N=size))
367 .format(DST=dst, N=size, BOOL=bool_type[dst]))
370 .format(DST=dst, N=size, BOOL=bool_type[dst]))
373 .format(DST=dst, N=size, BOOL=bool_type[dst]))