Home
last modified time | relevance | path

Searched refs:unit_atof (Results 1 – 4 of 4) sorted by relevance

/external/iperf3/src/
Dt_units.c44 assert(1024.0 * 0.5 == unit_atof("0.5K")); in main()
45 assert(1024.0 == unit_atof("1K")); in main()
46 assert(1024.0 * 1024.0 == unit_atof("1M")); in main()
47 assert(4.0 * 1024.0 * 1024.0 * 1024.0 == unit_atof("4G")); in main()
48 assert(3.0 * 1024.0 * 1024.0 * 1024.0 * 1024.0 == unit_atof("3T")); in main()
50 assert(1024.0 * 0.5 == unit_atof("0.5k")); in main()
51 assert(1024.0 == unit_atof("1k")); in main()
52 assert(1024.0 * 1024.0 == unit_atof("1m")); in main()
53 assert(4.0 * 1024.0 * 1024.0 * 1024.0 == unit_atof("4g")); in main()
54 assert(3.0 * 1024.0 * 1024.0 * 1024.0 * 1024.0 == unit_atof("3t")); in main()
Dunits.h31 double unit_atof( const char *s );
Dunits.c90 double unit_atof(const char *s) in unit_atof() function
Diperf_api.c1131 farg = unit_atof(optarg); in iperf_parse_arguments()