Lines Matching refs:fp

858         loadavg_t fp;  in TEST()  local
860 assert_se(parse_loadavg_fixed_point("1.23", &fp) == 0); in TEST()
861 assert_se(LOADAVG_INT_SIDE(fp) == 1); in TEST()
862 assert_se(LOADAVG_DECIMAL_SIDE(fp) == 23); in TEST()
864 assert_se(parse_loadavg_fixed_point("1.80", &fp) == 0); in TEST()
865 assert_se(LOADAVG_INT_SIDE(fp) == 1); in TEST()
866 assert_se(LOADAVG_DECIMAL_SIDE(fp) == 80); in TEST()
868 assert_se(parse_loadavg_fixed_point("0.07", &fp) == 0); in TEST()
869 assert_se(LOADAVG_INT_SIDE(fp) == 0); in TEST()
870 assert_se(LOADAVG_DECIMAL_SIDE(fp) == 7); in TEST()
872 assert_se(parse_loadavg_fixed_point("0.00", &fp) == 0); in TEST()
873 assert_se(LOADAVG_INT_SIDE(fp) == 0); in TEST()
874 assert_se(LOADAVG_DECIMAL_SIDE(fp) == 0); in TEST()
876 assert_se(parse_loadavg_fixed_point("4096.57", &fp) == 0); in TEST()
877 assert_se(LOADAVG_INT_SIDE(fp) == 4096); in TEST()
878 assert_se(LOADAVG_DECIMAL_SIDE(fp) == 57); in TEST()
881 assert_se(parse_loadavg_fixed_point("1.100", &fp) == -ERANGE); in TEST()
883 assert_se(parse_loadavg_fixed_point("4096.4096", &fp) == -ERANGE); in TEST()
884 assert_se(parse_loadavg_fixed_point("-4000.5", &fp) == -ERANGE); in TEST()
885 assert_se(parse_loadavg_fixed_point("18446744073709551615.5", &fp) == -ERANGE); in TEST()
886 assert_se(parse_loadavg_fixed_point("foobar", &fp) == -EINVAL); in TEST()
887 assert_se(parse_loadavg_fixed_point("3333", &fp) == -EINVAL); in TEST()
888 assert_se(parse_loadavg_fixed_point("1.2.3", &fp) == -EINVAL); in TEST()
889 assert_se(parse_loadavg_fixed_point(".", &fp) == -EINVAL); in TEST()
890 assert_se(parse_loadavg_fixed_point("", &fp) == -EINVAL); in TEST()