/* * Copyright (C) Narf Industries * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included * in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include "libcgc.h" #include "cgc_sale.h" #define END_MARKER NULL float __attribute__((regparm(2))) cgc_sale_0(unsigned int model_num, float cost) { unsigned int percent_int = 0; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_1(unsigned int model_num, float cost) { unsigned int percent_int = 1; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_2(unsigned int model_num, float cost) { unsigned int percent_int = 2; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_3(unsigned int model_num, float cost) { unsigned int percent_int = 3; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_4(unsigned int model_num, float cost) { unsigned int percent_int = 4; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_5(unsigned int model_num, float cost) { unsigned int percent_int = 5; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_6(unsigned int model_num, float cost) { unsigned int percent_int = 6; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_7(unsigned int model_num, float cost) { unsigned int percent_int = 7; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_8(unsigned int model_num, float cost) { unsigned int percent_int = 8; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_9(unsigned int model_num, float cost) { unsigned int percent_int = 9; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_10(unsigned int model_num, float cost) { unsigned int percent_int = 10; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_11(unsigned int model_num, float cost) { unsigned int percent_int = 11; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_12(unsigned int model_num, float cost) { unsigned int percent_int = 12; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_13(unsigned int model_num, float cost) { unsigned int percent_int = 13; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_14(unsigned int model_num, float cost) { unsigned int percent_int = 14; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_15(unsigned int model_num, float cost) { unsigned int percent_int = 15; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_16(unsigned int model_num, float cost) { unsigned int percent_int = 16; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_17(unsigned int model_num, float cost) { unsigned int percent_int = 17; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_18(unsigned int model_num, float cost) { unsigned int percent_int = 18; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_19(unsigned int model_num, float cost) { unsigned int percent_int = 19; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_20(unsigned int model_num, float cost) { unsigned int percent_int = 20; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_21(unsigned int model_num, float cost) { unsigned int percent_int = 21; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_22(unsigned int model_num, float cost) { unsigned int percent_int = 22; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_23(unsigned int model_num, float cost) { unsigned int percent_int = 23; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_24(unsigned int model_num, float cost) { unsigned int percent_int = 24; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_25(unsigned int model_num, float cost) { unsigned int percent_int = 25; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_26(unsigned int model_num, float cost) { unsigned int percent_int = 26; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_27(unsigned int model_num, float cost) { unsigned int percent_int = 27; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_28(unsigned int model_num, float cost) { unsigned int percent_int = 28; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_29(unsigned int model_num, float cost) { unsigned int percent_int = 29; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_30(unsigned int model_num, float cost) { unsigned int percent_int = 30; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_31(unsigned int model_num, float cost) { unsigned int percent_int = 31; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_32(unsigned int model_num, float cost) { unsigned int percent_int = 32; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_33(unsigned int model_num, float cost) { unsigned int percent_int = 33; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_34(unsigned int model_num, float cost) { unsigned int percent_int = 34; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_35(unsigned int model_num, float cost) { unsigned int percent_int = 35; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_36(unsigned int model_num, float cost) { unsigned int percent_int = 36; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_37(unsigned int model_num, float cost) { unsigned int percent_int = 37; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_38(unsigned int model_num, float cost) { unsigned int percent_int = 38; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_39(unsigned int model_num, float cost) { unsigned int percent_int = 39; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_40(unsigned int model_num, float cost) { unsigned int percent_int = 40; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_41(unsigned int model_num, float cost) { unsigned int percent_int = 41; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_42(unsigned int model_num, float cost) { unsigned int percent_int = 42; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_43(unsigned int model_num, float cost) { unsigned int percent_int = 43; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_44(unsigned int model_num, float cost) { unsigned int percent_int = 44; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_45(unsigned int model_num, float cost) { unsigned int percent_int = 45; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_46(unsigned int model_num, float cost) { unsigned int percent_int = 46; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_47(unsigned int model_num, float cost) { unsigned int percent_int = 47; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_48(unsigned int model_num, float cost) { unsigned int percent_int = 48; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_49(unsigned int model_num, float cost) { unsigned int percent_int = 49; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_50(unsigned int model_num, float cost) { unsigned int percent_int = 50; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_51(unsigned int model_num, float cost) { unsigned int percent_int = 51; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_52(unsigned int model_num, float cost) { unsigned int percent_int = 52; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_53(unsigned int model_num, float cost) { unsigned int percent_int = 53; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_54(unsigned int model_num, float cost) { unsigned int percent_int = 54; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_55(unsigned int model_num, float cost) { unsigned int percent_int = 55; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_56(unsigned int model_num, float cost) { unsigned int percent_int = 56; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_57(unsigned int model_num, float cost) { unsigned int percent_int = 57; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_58(unsigned int model_num, float cost) { unsigned int percent_int = 58; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_59(unsigned int model_num, float cost) { unsigned int percent_int = 59; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_60(unsigned int model_num, float cost) { unsigned int percent_int = 60; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_61(unsigned int model_num, float cost) { unsigned int percent_int = 61; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_62(unsigned int model_num, float cost) { unsigned int percent_int = 62; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_63(unsigned int model_num, float cost) { unsigned int percent_int = 63; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_64(unsigned int model_num, float cost) { unsigned int percent_int = 64; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_65(unsigned int model_num, float cost) { unsigned int percent_int = 65; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_66(unsigned int model_num, float cost) { unsigned int percent_int = 66; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_67(unsigned int model_num, float cost) { unsigned int percent_int = 67; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_68(unsigned int model_num, float cost) { unsigned int percent_int = 68; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_69(unsigned int model_num, float cost) { unsigned int percent_int = 69; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_70(unsigned int model_num, float cost) { unsigned int percent_int = 70; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_71(unsigned int model_num, float cost) { unsigned int percent_int = 71; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_72(unsigned int model_num, float cost) { unsigned int percent_int = 72; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_73(unsigned int model_num, float cost) { unsigned int percent_int = 73; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_74(unsigned int model_num, float cost) { unsigned int percent_int = 74; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_75(unsigned int model_num, float cost) { unsigned int percent_int = 75; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_76(unsigned int model_num, float cost) { unsigned int percent_int = 76; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_77(unsigned int model_num, float cost) { unsigned int percent_int = 77; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_78(unsigned int model_num, float cost) { unsigned int percent_int = 78; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_79(unsigned int model_num, float cost) { unsigned int percent_int = 79; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_80(unsigned int model_num, float cost) { unsigned int percent_int = 80; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_81(unsigned int model_num, float cost) { unsigned int percent_int = 81; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_82(unsigned int model_num, float cost) { unsigned int percent_int = 82; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_83(unsigned int model_num, float cost) { unsigned int percent_int = 83; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_84(unsigned int model_num, float cost) { unsigned int percent_int = 84; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_85(unsigned int model_num, float cost) { unsigned int percent_int = 85; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_86(unsigned int model_num, float cost) { unsigned int percent_int = 86; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_87(unsigned int model_num, float cost) { unsigned int percent_int = 87; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_88(unsigned int model_num, float cost) { unsigned int percent_int = 88; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_89(unsigned int model_num, float cost) { unsigned int percent_int = 89; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_90(unsigned int model_num, float cost) { unsigned int percent_int = 90; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_91(unsigned int model_num, float cost) { unsigned int percent_int = 91; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_92(unsigned int model_num, float cost) { unsigned int percent_int = 92; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_93(unsigned int model_num, float cost) { unsigned int percent_int = 93; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_94(unsigned int model_num, float cost) { unsigned int percent_int = 94; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_95(unsigned int model_num, float cost) { unsigned int percent_int = 95; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_96(unsigned int model_num, float cost) { unsigned int percent_int = 96; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_97(unsigned int model_num, float cost) { unsigned int percent_int = 97; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_98(unsigned int model_num, float cost) { unsigned int percent_int = 98; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) cgc_sale_99(unsigned int model_num, float cost) { unsigned int percent_int = 99; float adjustment = 1.0 - ((float)percent_int / 100.0); return cost * adjustment; } float __attribute__((regparm(2))) (*onsale_fn[101])(unsigned int model_num, float cost) = { cgc_sale_0, cgc_sale_1, cgc_sale_2, cgc_sale_3, cgc_sale_4, cgc_sale_5, cgc_sale_6, cgc_sale_7, cgc_sale_8, cgc_sale_9, cgc_sale_10, cgc_sale_11, cgc_sale_12, cgc_sale_13, cgc_sale_14, cgc_sale_15, cgc_sale_16, cgc_sale_17, cgc_sale_18, cgc_sale_19, cgc_sale_20, cgc_sale_21, cgc_sale_22, cgc_sale_23, cgc_sale_24, cgc_sale_25, cgc_sale_26, cgc_sale_27, cgc_sale_28, cgc_sale_29, cgc_sale_30, cgc_sale_31, cgc_sale_32, cgc_sale_33, cgc_sale_34, cgc_sale_35, cgc_sale_36, cgc_sale_37, cgc_sale_38, cgc_sale_39, cgc_sale_40, cgc_sale_41, cgc_sale_42, cgc_sale_43, cgc_sale_44, cgc_sale_45, cgc_sale_46, cgc_sale_47, cgc_sale_48, cgc_sale_49, cgc_sale_50, cgc_sale_51, cgc_sale_52, cgc_sale_53, cgc_sale_54, cgc_sale_55, cgc_sale_56, cgc_sale_57, cgc_sale_58, cgc_sale_59, cgc_sale_60, cgc_sale_61, cgc_sale_62, cgc_sale_63, cgc_sale_64, cgc_sale_65, cgc_sale_66, cgc_sale_67, cgc_sale_68, cgc_sale_69, cgc_sale_70, cgc_sale_71, cgc_sale_72, cgc_sale_73, cgc_sale_74, cgc_sale_75, cgc_sale_76, cgc_sale_77, cgc_sale_78, cgc_sale_79, cgc_sale_80, cgc_sale_81, cgc_sale_82, cgc_sale_83, cgc_sale_84, cgc_sale_85, cgc_sale_86, cgc_sale_87, cgc_sale_88, cgc_sale_89, cgc_sale_90, cgc_sale_91, cgc_sale_92, cgc_sale_93, cgc_sale_94, cgc_sale_95, cgc_sale_96, cgc_sale_97, cgc_sale_98, cgc_sale_99, END_MARKER };