Searched refs:unit_atof (Results 1 – 4 of 4) sorted by relevance
44 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()
31 double unit_atof( const char *s );
90 double unit_atof(const char *s) in unit_atof() function
1131 farg = unit_atof(optarg); in iperf_parse_arguments()