@@ -261,94 +261,58 @@ impl Builder<'_, '_> {
261261 self . sub ( exp, one)
262262 }
263263 LibmIntrinsic :: Custom ( LibmCustomIntrinsic :: Erf ) => {
264- let undef = self . undef ( result_type) ;
265- self . zombie ( undef. def ( self ) , "Erf not supported yet" ) ;
266- undef
264+ self . undef_zombie ( result_type, "Erf not supported yet" )
267265 }
268266 LibmIntrinsic :: Custom ( LibmCustomIntrinsic :: Erfc ) => {
269- let undef = self . undef ( result_type) ;
270- self . zombie ( undef. def ( self ) , "Erfc not supported yet" ) ;
271- undef
267+ self . undef_zombie ( result_type, "Erfc not supported yet" )
272268 }
273269 LibmIntrinsic :: Custom ( LibmCustomIntrinsic :: Fdim ) => {
274- let undef = self . undef ( result_type) ;
275- self . zombie ( undef. def ( self ) , "Fdim not supported yet" ) ;
276- undef
270+ self . undef_zombie ( result_type, "Fdim not supported yet" )
277271 }
278272 LibmIntrinsic :: Custom ( LibmCustomIntrinsic :: Hypot ) => {
279- let undef = self . undef ( result_type) ;
280- self . zombie ( undef. def ( self ) , "Hypot not supported yet" ) ;
281- undef
273+ self . undef_zombie ( result_type, "Hypot not supported yet" )
282274 }
283275 LibmIntrinsic :: Custom ( LibmCustomIntrinsic :: Ilogb ) => {
284- let undef = self . undef ( result_type) ;
285- self . zombie ( undef. def ( self ) , "Ilogb not supported yet" ) ;
286- undef
276+ self . undef_zombie ( result_type, "Ilogb not supported yet" )
287277 }
288278 LibmIntrinsic :: Custom ( LibmCustomIntrinsic :: J0 ) => {
289- let undef = self . undef ( result_type) ;
290- self . zombie ( undef. def ( self ) , "J0 not supported yet" ) ;
291- undef
279+ self . undef_zombie ( result_type, "J0 not supported yet" )
292280 }
293281 LibmIntrinsic :: Custom ( LibmCustomIntrinsic :: Y0 ) => {
294- let undef = self . undef ( result_type) ;
295- self . zombie ( undef. def ( self ) , "Y0 not supported yet" ) ;
296- undef
282+ self . undef_zombie ( result_type, "Y0 not supported yet" )
297283 }
298284 LibmIntrinsic :: Custom ( LibmCustomIntrinsic :: J1 ) => {
299- let undef = self . undef ( result_type) ;
300- self . zombie ( undef. def ( self ) , "J1 not supported yet" ) ;
301- undef
285+ self . undef_zombie ( result_type, "J1 not supported yet" )
302286 }
303287 LibmIntrinsic :: Custom ( LibmCustomIntrinsic :: Y1 ) => {
304- let undef = self . undef ( result_type) ;
305- self . zombie ( undef. def ( self ) , "Y1 not supported yet" ) ;
306- undef
288+ self . undef_zombie ( result_type, "Y1 not supported yet" )
307289 }
308290 LibmIntrinsic :: Custom ( LibmCustomIntrinsic :: Jn ) => {
309- let undef = self . undef ( result_type) ;
310- self . zombie ( undef. def ( self ) , "Jn not supported yet" ) ;
311- undef
291+ self . undef_zombie ( result_type, "Jn not supported yet" )
312292 }
313293 LibmIntrinsic :: Custom ( LibmCustomIntrinsic :: Yn ) => {
314- let undef = self . undef ( result_type) ;
315- self . zombie ( undef. def ( self ) , "Yn not supported yet" ) ;
316- undef
294+ self . undef_zombie ( result_type, "Yn not supported yet" )
317295 }
318296 LibmIntrinsic :: Custom ( LibmCustomIntrinsic :: Lgamma ) => {
319- let undef = self . undef ( result_type) ;
320- self . zombie ( undef. def ( self ) , "Lgamma not supported yet" ) ;
321- undef
297+ self . undef_zombie ( result_type, "Lgamma not supported yet" )
322298 }
323299 LibmIntrinsic :: Custom ( LibmCustomIntrinsic :: LgammaR ) => {
324- let undef = self . undef ( result_type) ;
325- self . zombie ( undef. def ( self ) , "LgammaR not supported yet" ) ;
326- undef
300+ self . undef_zombie ( result_type, "LgammaR not supported yet" )
327301 }
328302 LibmIntrinsic :: Custom ( LibmCustomIntrinsic :: Tgamma ) => {
329- let undef = self . undef ( result_type) ;
330- self . zombie ( undef. def ( self ) , "Tgamma not supported yet" ) ;
331- undef
303+ self . undef_zombie ( result_type, "Tgamma not supported yet" )
332304 }
333305 LibmIntrinsic :: Custom ( LibmCustomIntrinsic :: NextAfter ) => {
334- let undef = self . undef ( result_type) ;
335- self . zombie ( undef. def ( self ) , "NextAfter not supported yet" ) ;
336- undef
306+ self . undef_zombie ( result_type, "NextAfter not supported yet" )
337307 }
338308 LibmIntrinsic :: Custom ( LibmCustomIntrinsic :: Remainder ) => {
339- let undef = self . undef ( result_type) ;
340- self . zombie ( undef. def ( self ) , "Remainder not supported yet" ) ;
341- undef
309+ self . undef_zombie ( result_type, "Remainder not supported yet" )
342310 }
343311 LibmIntrinsic :: Custom ( LibmCustomIntrinsic :: RemQuo ) => {
344- let undef = self . undef ( result_type) ;
345- self . zombie ( undef. def ( self ) , "RemQuo not supported yet" ) ;
346- undef
312+ self . undef_zombie ( result_type, "RemQuo not supported yet" )
347313 }
348314 LibmIntrinsic :: Custom ( LibmCustomIntrinsic :: Scalbn ) => {
349- let undef = self . undef ( result_type) ;
350- self . zombie ( undef. def ( self ) , "Scalbn not supported yet" ) ;
351- undef
315+ self . undef_zombie ( result_type, "Scalbn not supported yet" )
352316 }
353317 }
354318 }
0 commit comments