This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static __m128i const shuffles[16] = { | |
#define _ -1 // for readability | |
{ _,_,_,_, _,_,_,_, _,_,_,_, _,_,_,_ }, // 0000 | |
{ 0,1,_,_, _,_,_,_, _,_,_,_, _,_,_,_ }, // 0001 | |
{ _,_,_,_, 0,1,_,_, _,_,_,_, _,_,_,_ }, // 0010 | |
{ 0,1,_,_, 2,3,_,_, _,_,_,_, _,_,_,_ }, // 0011 | |
{ _,_,_,_, _,_,_,_, 0,1,_,_, _,_,_,_ }, // 0100 | |
{ 0,1,_,_, _,_,_,_, 2,3,_,_, _,_,_,_ }, // 0101 | |
{ _,_,_,_, 0,1,_,_, 2,3,_,_, _,_,_,_ }, // 0110 | |
{ 0,1,_,_, 2,3,_,_, 4,5,_,_, _,_,_,_ }, // 0111 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
@interface WTF : NSObject | |
-:x; | |
@end | |
@implementation WTF | |
-:x; | |
{ | |
return x; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <mach/mach.h> | |
#include <bootstrap_priv.h> | |
#include <stdlib.h> | |
void error(int a, int r, const char *str) { | |
const char *err = bootstrap_strerror(r); | |
fprintf(stderr, "%s (%#02x) %s\n", str, r, err); | |
exit(a); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <CommonCrypto/CommonKeyDerivation.h> | |
#include <CommonCrypto/CommonCryptor.h> | |
#include <assert.h> | |
#include <dispatch/dispatch.h> | |
int main (int argc, char *argv[]) { | |
uint64_t salt = 0; | |
dispatch_group_t group = dispatch_group_create(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import UIKit; | |
@import AVFoundation; | |
@class _UISiriWaveyView; | |
@protocol _UISiriWaveyViewDelegate <NSObject> | |
- (CGFloat)audioLevelForWaveyView:(_UISiriWaveyView *)waveyView; | |
@end | |
typedef NS_ENUM(NSInteger, _UISiriWaveyViewMode) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
@interface Node : NSObject | |
@property (nonatomic) NSInteger identifier; | |
@property (nonatomic, copy) NSString *value; | |
+ (Node *)nodeWithIdentifier:(NSInteger)identifier value:(NSString *)value; | |
@end | |
@implementation Node | |
+ (Node *)nodeWithIdentifier:(NSInteger)identifier value:(NSString *)value { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// CKSpinnerView.h | |
// | |
// Created by Conrad Kramer on 9/19/13. | |
// Copyright (c) 2013 Conrad Kramer. All rights reserved. | |
// | |
#import <CKShapeView/CKShapeView.h> | |
@interface CKSpinnerView : CKShapeView |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (c) 2013 CodaFi. All rights reserved. | |
* | |
* @APPLE_LICENSE_HEADER_START@ | |
* | |
* This file contains Original Code and/or Modifications of Original Code | |
* as defined in and that are subject to the Apple Public Source License | |
* Version 2.0 (the 'License'). You may not use this file except in | |
* compliance with the License. Please obtain a copy of the License at | |
* http://www.opensource.apple.com/apsl/ and read it before using this |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// PropertyMacros.h | |
// | |
// | |
// Created by Nicolas Bouilleaud on 12/04/12, | |
// using ideas by Uli Kusterer (http://orangejuiceliberationfront.com/safe-key-value-coding/) | |
// Laurent Deniau (https://groups.google.com/forum/?fromgroups#!topic/comp.std.c/d-6Mj5Lko_s) | |
// and Nick Forge (http://forgecode.net/2011/11/compile-time-checking-of-kvc-keys/) | |
// | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Defines a yet undocumented method to add a warning if super isn't called. | |
#ifndef NS_REQUIRES_SUPER | |
#if __has_attribute(objc_requires_super) | |
#define NS_REQUIRES_SUPER __attribute((objc_requires_super)) | |
#else | |
#define NS_REQUIRES_SUPER | |
#endif | |
#endif | |
@interface UIViewController (SubclassingWarnings) |
OlderNewer